# 基础镜像，当前新镜像是基于哪个镜像
FROM nginx
# RUN：容器构建时需要运行的命令
RUN echo "Asia/Shanghai" > /etc/timezone;dpkg-reconfigure -f noninteractive tzdata
# ADD：将宿主机目录下的文件拷贝到镜像且 ADD 命令会自动处理 URL 和解压 tar 压缩包
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY ./https.conf /etc/nginx/conf.d/https.conf
COPY ./5439856_sewing.lizhivscaomei.site.pem /etc/nginx/conf.d/5439856_sewing.lizhivscaomei.site.pem
COPY ./5439856_sewing.lizhivscaomei.site.key /etc/nginx/conf.d/5439856_sewing.lizhivscaomei.site.key
ADD ./dist /var/www/sewing/dist
# EXPOSE：当前容器对外暴露的端口
EXPOSE 80 443